package com.addplus.townmall.server.api.model.town.expand;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.util.List;
@Data
public class StoreExpand implements Comparable<StoreExpand>{

    private Integer id;
    @TableField("store_id")
    private Integer storeId;
    @TableField("store_name")
    private String storeName;
    List<ShopProductExpand> shopList;

    @Override
    public int compareTo(StoreExpand storeExpand) {
        int i=storeExpand.getShopList().get(0).getGmtModified().compareTo(this.getShopList().get(0).getGmtModified());
        return i;
    }
}
